Date and Time Constants
These constants can be used to retrieve the current local date and time on the user's system, which may or may not be accurate. The information is updated in realtime, which means that the various constants will report different values as time passes during the execution of the script.
- DATE_YEAR - Integer.
- DATE_MONTH - Integer (from 1 to 12).
- DATE_MONTH_NAME - String (the English name of the current month).
- DATE_DAY - Integer (from 1 to 31).
- DATE_WEEKDAY - Integer (from 1 (Monday) to 7 (Sunday)).
- DATE_WEEKDAY_NAME - String (the English name of the current weekday).
- TIME_HOUR - Integer (from 0 (midnight) to 23 (11 in the evening)).
- TIME_MINUTE - Integer (from 0 to 59).
- TIME_SECOND - Integer (from 0 to 59).
- TIME_SYSTEM_RUNNING_MILLISECONDS - Unsigned integer (specifies the number of milliseconds that the operating system has been running for).
- TIME_STAMP - Unsigned integer (specifies the number of seconds that have elapsed since midnight on January 1, 1970 which is also known as a Unix time stamp).